﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SolutionBLL;
using SolutionModel;
using SFast.DB;
using System.Data;
using SFast;

public partial class admin_system_UserList : System.Web.UI.Page
{

    T_AdminUserBLL bll = new T_AdminUserBLL();

    protected void Page_Load(object sender, EventArgs e)
    {
        
        //this.rp_list.DataSource = page;
        //this.rp_list.DataBind();
        //div_page.InnerHtml = page._ToPageHtml();
    }

    public String GetAdminUserList()
    {
        Pagination page = bll.GetAdminUserPage(15);
        String jsonStr = page._ToJsonStr();
        return jsonStr;
    }
    public String getAdminRolesByAdminId()
    {
        T_UsersInRolesBLL bl = new T_UsersInRolesBLL();
        if (!Request["uid"]._HasVal())
        {
            return "[]";
        }
        String jsonStr = bl.GetRolesByUser(Request["uid"])._ToJsonStr();
        return jsonStr;
    }
}